package com.yikes.yygh.controller.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  数据字典-页面VO
 * </p>
 *
 * @Author: guanrong.yin
 * @Date: 2025/5/2 23:46
 */
@Getter
@Setter
@ToString
public class DictVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "上级id")
    private Long parentId;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "值")
    private Long value;

    @Schema(description = "编码")
    private String dictCode;

    @Schema(description = "是否包含子节点")
    @TableField(exist = false)
    private boolean hasChildren;

    @Schema(description = "子集")
    private List<DictVO> children;

}
